<script type="text/javascript">
    //This file belongs to the Oyster IE plugin
    //Distributed under the Microsoft Public License:
    //http://oyster.codeplex.com/license
    //Made by: Kirill Illenseer
    //Contact: ReBootOnSteam@live.de
    //Web: http://oyster.codeplex.com
    if (typeof String.prototype.startsWith != 'function') {
        String.prototype.startsWith = function (str) {
            return this.indexOf(str) == 0;
        };
    }
    du = external.menuArguments.document.URL;
    lr = external.menuArguments.window.event.srcElement.href;
    if (lr != null) { link = lr } else { link = du };
    var shell = new ActiveXObject("WScript.Shell");
    shell.run("\"%ProgramFiles%\\Internet Explorer\\PLUGINS\\Oyster\\Codeplex MSI Autoupdate.exe\" oyster Oyster 1.2 Prompt DirectDL");
    var teile = link.split("/");
    if (link.startsWith("http://store.steampowered.com/app/")) {
        shell.run("steam://store/" + teile[4]);
    }
    else if (link.startsWith("http://steamcommunity.com/groups/")) {
        shell.run("steam://url/CommunityGroupSearch/" + teile[4]);
    }
    else if (link.startsWith("http://store.steampowered.com/news/")) {
        fehler();
    }
    else if (link.startsWith("http://store.steampowered.com/login/")) {
        fehler();
    }
    else if (link.startsWith("http://store.steampowered.com/")) {
        shell.run("steam://store/");
    }
    else { fehler(); }
    function fehler() {
        alert("Oyster opens Steam game store or community group pages");
    }
</script>
